﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.IO;
using System.Linq;
using System.Reflection;
using System.Windows;

namespace IMPressive
{
    /// <summary>
    /// Logique d'interaction pour App.xaml
    /// </summary>
    public partial class App : Application
    {
        public static Version AssemblyVersion
        {
            get
            {
                return Assembly.GetEntryAssembly().GetName().Version;
            }
        }

        private void Application_Exit(object sender, ExitEventArgs e)
        {
            foreach (string f in Directory.GetFiles(AppDomain.CurrentDomain.BaseDirectory).Where(x => x.Contains("Texture")))
            {
                File.Delete(f);
            }
        }
    }
}
